import {request} from "./request";

//意见反馈添加
export const busOpinionadd  = (data) => request({
	url:'/opinion/busOpinion/add',
	method:'post',
	data
})

// 意见反馈记录 
export const  busOpinionlist = (pageNo) => request({
	url:`/opinion/busOpinion/list?pageNo=${pageNo}`,
	method:'get',
})

// 意见反馈上传
export   const  busOpinionup = (data) => request({
	url:'/opinion/busOpinion/up',
	method:'post',
	data
})


//日任务列表  
export const  busTasklist = (pageNo) => request({
	url:`/task/busTask/list?pageNo=${pageNo}`,
	method:'get'
})


//我的他币 
export const  currency = (id) => request({
	url:`/asset/asset/queryById?id=${id}`,
	method:'get'
})

//他币列表
export const  currencyList = (pageNo) => request({
	url:`/assetDetail/assetDetail/list?pageNo=${pageNo}`,
	method:'get'
})


export const myCardAPI = (userId) => request({
	url:`/coupons/busCoupons/list?userId=${userId}`,
	method:'get'
})


//用户档案-查询用户是否有本人档案
export const queryUserIsDetails = (userId) =>request({
	url:`/userDetails/userDetails/queryUserIsDetails?id=${userId}`,
	method:'get'
})


//  获取平台入驻信息
export  const queryExpertHomePage = (expertId) => request({
	url:`/expert/busExpertManagement/queryExpertHomePage?expertId=${expertId}`,
	method:'get'
})

// 获取技能的接口  /sys/dictItem/list
export const   dictItemList = (data) => request({
	url:`/sys/dictItem/list`,
	method:'get',
	data:data
})


// 技能编辑接口 /expert/busExpertManagement/edit
export const editExpertHomePage = ( data) => request({
	url:`/expert/busExpertManagement/edit`,
	method:'post',
	data:data
})


//微信支付-调用统一下单API
export const jsapiPay = (id) => request({
	url:`/wxpay/busWxPay/jsapiPay?productId=${id}`,
	method:'post',
})


// 微信支付回调接口  /wxpay/busWxPay/jsapi/notify


export const Notify = (data) => request({
	url:`/wxpay/busWxPay/jsapi/notify`,
	method:'post',
	data:data
})
